﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interfaces;
using Model;
using Database;

namespace Collections
{
    public class ScooterCollection
    {
        public void GemKundescooter(Iscooter scooter)
        {
            DbController db = DbController.GetInstance();
            db.IndsaetKundescooter(scooter);
        }
        public List<Iscooter> HentAlleLedigeUdlejningsscootere()
        {
            List<Iscooter> scooterliste;
            DbController db = DbController.GetInstance();
            scooterliste = db.HentAlleLedigeUdlejningsscootere();
            return scooterliste;
        }
        public List<Iscooter> HentAlleUdlejningsscootere()
        {
            List<Iscooter> scooterliste;
            DbController db = DbController.GetInstance();
            scooterliste = db.HentAlleUdlejningsscootere();
            return scooterliste;
        }
        public void OpdaterKmAntal(int stelnr, int kmAntal)
        {
            DbController db = DbController.GetInstance();
            db.OpdaterKmAntal(stelnr, kmAntal);
        }
        public Iscooter HentScooterFraStelnummer(int stelnr)
        {
            Iscooter scooter;
            DbController db = DbController.GetInstance();
            scooter = db.HentScooterFraStelnummer(stelnr);
            return scooter;
        }
        public void ScooterRetur(int stelnummmer)
        {
            DbController db = DbController.GetInstance();
            db.ScooterRetur(stelnummmer);
        }
    }
}
